import { RequestServerClass } from '@/util/request';

export class DemoServer {
  public rService: any;

  constructor(opt: any, axiosFilterFn?: any) {
    this.rService = new RequestServerClass(opt);
    if (axiosFilterFn) {
      axiosFilterFn.call(this, this.rService.serverObj);
    }
  }

  public getDemoList() {
    const url: string = '/getDemoList';
    return this.rService.serverObj.post(url, {});
  }
}
